
<!-- 响应式输入框 -->
<template>
  <el-col :xs="24" :sm="12" :lg="6">
    <el-form-item :label="`${label}：`">
      <el-input :placeholder="`请输入${label}`" v-model="value"  @input="inputChange"/>
    </el-form-item>
  </el-col>
</template>

<script setup lang="ts">
  const emit = defineEmits(['update:value'])

  const props = defineProps({
    label: String,
    value: String
  })

  function inputChange(val: any) {
    emit('update:value', val)
  }
</script>


<style lang="scss" scoped>
  
</style>
